You can generate a php file per share so you can customize the thumbnail and description and title on Facebook. Next time user clicks share, you can check the php file exists yet before proceeding at generating it. Then that should be the url the visitor shares ``` async function generatePNGShare(outputPath, name, plug) { const result = (async () => { try { // Define imagePath by replacing .php with .png in outputPath const imagePath = outputPath.replace(/\.php$/, '.png'); // Check if the image file exists if (!fs.existsSync(imagePath)) { throw new Error(`Image file does not exist at ${imagePath}`); } // Get the image filename for HTML usage const imageFilename = path.basename(imagePath); // Generate the PHP file content const phpContent = `
Benefits of why you want a unique picture... Lorem ipsum...
`; // Write the PHP content to outputPath fs.writeFileSync(outputPath, phpContent); console.log('PHP file generated successfully.'); return { status: "success", outputPath: outputPath }; } catch (error) { console.error('Error processing images:', error); return { status: "error", message: error.message }; } })(); return result; } // generatePNGShare ```